#include <omp.h>
#include <iostream>
#include <math.h>
#include "Integral.hpp"

using std::cout;

double calcIntegral()
{
  
  const double minX = 0.0;
  const double maxX = 2.0;
  const double minY = 0.0;
  const double maxY = 2.0;
  
  const double step = 1e-3;
  
  double sum = computeIntegral( minX, maxX, minY, maxY, step );
  
  return sum;
  
}

int main( int argc, char **argv )
{
  
  double startTime = omp_get_wtime();
  cout << "Value: " << calcIntegral() << std::endl;
  double endTime = omp_get_wtime();
  
  cout << "Time: " << endTime-startTime << std::endl;
  
  return 0;
  
}